import request from '@/utils/request'

export function search(data) {
  return request({
    url: `/md/commonBrowsers/selectPageDeviceType`,
    method: 'post',
    data: data
  })
}

export function getById(id) {
  return request({
    url: `/md/deviceTypes/${id}`,
    method: `get`
  })
}

export function query(data) {
  return request({
    url: `/md/deviceTypes/query`,
    method: 'get',
    params: data
  })
}

export function save(data) {
  return request({
    url: `/md/deviceTypes/save`,
    method: 'post',
    data: data
  })
}

export function remove(deviceType) {
  return request({
    url: `/md/deviceTypes/delete?deviceType=${deviceType}`,
    method: 'delete'
  })
}

export function transferData() {
  return request({
    url: `/md/deviceTypes/getDeviceVoList`,
    method: 'get'
  })
}
